 package client;

 import java.awt.Point;
 import java.util.ArrayList;
 import java.util.List;
 import server.maps.MapleMap;
 import tools.Pair;



 public class MapleForce
 {
   private final int ownerID;
   private final int skillID;
   private final int fromMobOID;
   private final int attackCount;
   private final MapleForceType type;
   private final byte subType;
   private final byte value;
   private final List<Integer> toMobOID;
/*  21 */   private final List<Pair<Integer, Byte>> forceOID = new ArrayList<>();

   private int summonOId;

   private Point summonPosition;

   private final int bulletCount;

   public MapleForce(int ownerID, int skillID, int fromMobOID, MapleForceType type, byte subType, List<Integer> toMobOID, byte value, int attackCount, MapleMap map, int bulletCount) {
/*  30 */     this.ownerID = ownerID;
/*  31 */     this.skillID = skillID;
/*  32 */     this.fromMobOID = fromMobOID;
/*  33 */     this.type = type;
/*  34 */     this.subType = subType;
/*  35 */     this.toMobOID = toMobOID;
/*  36 */     this.value = value;
/*  37 */     this.attackCount = attackCount;
/*  38 */     this.bulletCount = bulletCount;
/*  39 */     initForces(map);
   }




   public MapleForce(int ownerID, int skillID, int fromMobOID, int summonOId, Point summonPosition, MapleForceType type, byte subType, List<Integer> toMobOID, byte value, int attackCount, MapleMap map, int bulletCount) {
/*  46 */     this.ownerID = ownerID;
/*  47 */     this.skillID = skillID;
/*  48 */     this.fromMobOID = fromMobOID;
/*  49 */     this.summonOId = summonOId;
/*  50 */     this.type = type;
/*  51 */     this.subType = subType;
/*  52 */     this.toMobOID = toMobOID;
/*  53 */     this.value = value;
/*  54 */     this.attackCount = attackCount;
/*  55 */     this.summonPosition = summonPosition;
/*  56 */     this.bulletCount = bulletCount;
/*  57 */     if (skillID == 400041038) {
/*  58 */       this.summonPosition.y -= 315;
     }
/*  60 */     initForces(map);
   }


   private void initForces(MapleMap map) {
/*  65 */     for (int i = 0; i < this.attackCount; i++) {
/*  66 */       this.forceOID.add(new Pair(Integer.valueOf(map.getSpawnedForcesOnMap()), Byte.valueOf(this.value)));
     }
   }


   public int getOwnerID() {
/*  72 */     return this.ownerID;
   }

   public int getSkillID() {
/*  76 */     return this.skillID;
   }

   public int getFromMobOID() {
/*  80 */     return this.fromMobOID;
   }

   public MapleForceType getType() {
/*  84 */     return this.type;
   }

   public byte getSubType() {
/*  88 */     return this.subType;
   }

   public List<Integer> getToMobOID() {
/*  92 */     return this.toMobOID;
   }

   public List<Pair<Integer, Byte>> getForceOID() {
/*  96 */     return this.forceOID;
   }

   public byte getValue() {
/* 100 */     return this.value;
   }

   public int getAttackCount() {
/* 104 */     return this.attackCount;
   }

   public int getSummonOId() {
/* 108 */     return this.summonOId;
   }

   public Point getPosition() {
/* 112 */     return this.summonPosition;
   }

   public int getBulletCount() {
/* 116 */     return this.bulletCount;
   }
 }


/* Location:              C:\PGX\Server.jar!\client\MapleForce.class
 * Java compiler version: 8 (52.0)
 * JD-Core Version:       1.1.3
 */